package com.yanqu.road.entity.scenecard;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.concurrent.ConcurrentHashMap;

@FieldTypeAnnotation(tableName = "t_u_scene_card")
public class SceneCardPlayerData extends DataObject {
    /*
     * 卡片 id
     */
    @FieldTypeAnnotation(desc = "卡片id", isIndex = true, select = true, update = true)
    private int cardId;

    /*
     * 触发时间
     */
    @FieldTypeAnnotation(desc = "触发时间")
    private long touchTime;

    public int getCardId() {
        return cardId;
    }
    public void setCardId(int cardId) {
        if (this.cardId != cardId) {
            this.cardId = cardId;
            setOp(DataStatus.Update);
        }
    }

    public long getTouchTime() {
        return touchTime;
    }
    public void setTouchTime(long touchTime) {
        if (this.touchTime != touchTime) {
            this.touchTime = touchTime;
            setOp(DataStatus.Update);
        }
    }
}
